<form action="" method="post" name="adminForm">	
	<table class="adminlist">
		<thead>	
			<tr>
				<th width="5%">
					<input type="checkbox" name="toggle" value=""  onclick="checkAll(<?php echo $this->TOTAL_ROW;?>);" />
				</th>
				<th class="title" width="10%">
					Group
				</th>	
				<th class="title" width="15%">
					View
				</th>					
				<th class="title" width="15%" >
					Delete
				</th>	
				<th class="title" width="15%" >
					 Add
				</th>		
				<th class="title" width="15%">
					 Edit
				<th class="title" width="15%">
					 Report
				</th>
				
			</tr>
		</thead>
		<tfoot>
			<tr>
				<td colspan="14">
					<?php echo $this->LIST_FOOTER_PAV;?>
				</td>
			</tr>
		</tfoot>
		<tbody>
			<?php if($this->TOTAL_ROW) {
					$i = 0;
					foreach($this->dbrow as $key=>$value) {
					 	$checked = JHTML::_('grid.checkedout', $value, $i );
					 	$css_row = $i%2 ? 'row0':'row1'; 
			?>
						<tr class="<?=$css_row?>">
							<td align="center"><?php echo $checked;?></td>
							<td align="center">
								<a href="<?php echo JRoute::_('index.php?option=com_manager&c=rolepim&task=edit&cid[]='.$value->id)?>" title="<?php echo $value->id;?>">
									<?php echo $value->g_title;?>
								</a>
							</td>
							<td align="center">
								<?php
									if(intval($value->view) == 1) { 
										$img_url = JURI::root()."administrator/templates/hathor/images/admin/tick.png";
									} else {
										$img_url = JURI::root()."administrator/templates/hathor/images/admin/publish_x.png";
									} 
								?>
								<img alt="" src="<?=$img_url?>">
							</td>
							<td align="center">
								<?php
									if(intval($value->delete) == 1) { 
										$img_url = JURI::root()."administrator/templates/hathor/images/admin/tick.png";
									} else {
										$img_url = JURI::root()."administrator/templates/hathor/images/admin/publish_x.png";
									} 
								?>
								<img alt="" src="<?=$img_url?>">
							</td>	
							<td align="center">
								<?php
									if(intval($value->add) == 1) { 
										$img_url = JURI::root()."administrator/templates/hathor/images/admin/tick.png";
									} else {
										$img_url = JURI::root()."administrator/templates/hathor/images/admin/publish_x.png";
									} 
								?>
								<img alt="" src="<?=$img_url?>">
							</td>	
							<td align="center">
								<?php
									if(intval($value->edit) == 1) { 
										$img_url = JURI::root()."administrator/templates/hathor/images/admin/tick.png";
									} else {
										$img_url = JURI::root()."administrator/templates/hathor/images/admin/publish_x.png";
									} 
								?>
								<img alt="" src="<?=$img_url?>">
							</td>	
							<td align="center">
								<?php
									if(intval($value->report) == 1) { 
										$img_url = JURI::root()."administrator/templates/hathor/images/admin/tick.png";
									} else {
										$img_url = JURI::root()."administrator/templates/hathor/images/admin/publish_x.png";
									} 
								?>
								<img alt="" src="<?=$img_url?>">
							</td>		
						</tr>
			<?php
						$i++;
					}
				} 
			?>	
		</tbody>
	</table>
			
	<input type="hidden" name="option" value="com_manager" />
	<input type="hidden" name="c" value="rolepim" />
	<input type="hidden" name="task" value="" />
	<input type="hidden" name="boxchecked" value="0" />
	<input type="hidden" name="filter_order" value="<?php echo $this->FORM_ORDER;?>" />
	<input type="hidden" name="filter_order_Dir" value="<?php echo $this->FORM_ORDER_DIR;?>" />
	<?php echo $this->FORM_TOKEN;?>
</form>
